package com.dayu.recovery.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dayu.common.annotation.Excel;
import com.dayu.common.core.domain.BaseEntity;

/**
 * 调价记录对象 recovery_modify
 * 
 * @author HK
 * @date 2021-04-16
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RecoveryModify extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long modifyId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String orderNum;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 调价前金额 */
    @Excel(name = "调价前金额")
    private BigDecimal prePrice;

    /** 调价额度 */
    @Excel(name = "调价额度")
    private BigDecimal modPrice;

    /** 调价后价格 */
    @Excel(name = "调价后价格")
    private BigDecimal sufPrice;

    /** 调价类型 */
    @Excel(name = "调价类型", readConverterExp = "1=上调,2=下调")
    private Integer status;

    /** 是否成功 */
    private Integer goodsUpdate;

    @Excel(name = "基数类型", readConverterExp = "1=成本价格,2=预售价格")
    private Integer baseType;

    @Excel(name = "自定义标签")
    private String typeText;

    @Excel(name = "调价时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "调价原因")
    private String remark;

    private String offerName;
}
